package com.iweb.day08;

import com.iweb.day04.Student;

/**
 * @author WuYongheng
 * @date 2021/11/14
 * @description
 */
public class TestCup {
    public static void main(String[] args) {
        Student student=new Student();
        // 使用范型类创建对象时，一般要先定义类型
        Cup<Student> cup=new Cup();
        cup.setData(student);
        System.out.println(cup.getData());

    }
}
